Ext.define('Hr.view.cardinfo.ShowPanel',{
    extend:'Ext.panel.Panel',
    alias:'widget.show',
    width:"80%",
    height:'100%',
    disabled:true,
    layout:'vbox',
    title:'证书一览',
    items:[{
        xtype:'grid',
        width:'100%',
        heigth:'100%',
        border:false,
        flex:1,
        id:'grid',
        store:'cardinfo.CardStore',
        columns:[{
            header:'证书ID',
            flex:1,
            dataIndex:'id',
            hidden:true
        },{
            header:'证件编号',
            flex:1,
            dataIndex:'cd'
        },{
            header:'证件名称',
            flex:1,
            dataIndex:'name'
        },{
            header:'是否持证',
            flex:1,
            dataIndex:'state'
        },{
            header:'发证日期',
            flex:1,
            dataIndex:'usefulTime'
        },{
            header:'最近审查日期',
            flex:1,
            dataIndex:'usefulEndTime'
        },{
            header:'年检期(年)',
            flex:1,
            dataIndex:'yearUsefulTime'
        },{
            header:'证件扫描件',
            flex:1,
            dataIndex:'photo'
        },{
            header:'备注',
            flex:1,
            dataIndex:'comment'
        }],
        tbar:[{
            xtype:'textfield',
            width:150,
            id:'textfield'
        },{
            xtype:'combo',
            width:150,
            id:'combo',
            editable:false,
            store:'cardinfo.CardComboStore',
            displayField:'name',
            valueField:'value'
        },{
            icon:'../image/icons/search.png',
            text:'搜寻',
            action:'search'
        }],
        bbar:[{
           text:'新增',
           action:'add',
           icon:'../image/icons/add.png'
        },{
           text:'修改',
           action:'update',
           disabled:true,
           id:'update',
           icon:'../image/icons/update.png'
        },{
           text:'删除',
           action:'del',
           disabled:true,
           id:'del',
           icon:'../image/icons/del.png'
        },'->',Ext.create('Ext.PagingToolbar', {
            pageSize: 10,
            beforePageText:'第',
            afterPageText:'页，共{0}页',
            displayMsg:'当前{0}-{1}条数据，共{2}条数据',
            emptyMsg:'没有可显示的数据',
            border:false,
            displayInfo: true
        })]
    }]
});